package com.test.demo.domain;

import com.test.demo.util.GeometryTools;
import com.test.demo.util.SvgUtil;

import java.io.Serializable;

public class Robot6 extends Robot  implements Serializable {
    private static final long serialVersionUID = 1L;
    public Robot6(int x, int y) {
        super.width = 80;
        super.height = 120;
        super.x = x;
        super.y = y;
        super.name = "机器人";
        super.color = getColorByName();
        shape = SvgUtil.loadSVGPathFromFile(SvgUtil.class.getResourceAsStream("/icons/robot-6.svg"));
        geometry = GeometryTools.shapeToGeometry(shape);
    }

    @Override
    public void die() {
        super.die();
    }


}
